import request from '@/utils/request.js'
import { useTokenStore } from '@/stores/token.js'

//提供调用分页查询接口的函数
export const feedbackPageQueryService = (params)=>{
    return request.get('/admin/feedback/page',{params: params});
}

//修改信息
export const feedbackInfoUpdateService = (userInfoData)=>{
    return request.put('/admin/feedback',userInfoData)
}

 //删除信息
export const feedbackDeleteService = (id)=>{
    return request.delete('/admin/feedback/' + id)
 }

  //获取信息
export const feedbackInfoGetService = (id)=>{
    return request.get('/admin/feedback/' + id)
}

  //新增信息
  export const feedbackRegisterService = (registerData)=>{
    return request.post('/admin/feedback/add', registerData)
}